using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace TreeViewPicker
{
    public class TreeNodeList
    {

        public static List<TreeNode> CreateFrom(IList<OrganisationalUnit> ouList)
        {
            List<TreeNode> treeNodeList = new List<TreeNode>();
            foreach (var item in ouList)
            {
                var node = TreeNode.CreateFrom(item);
                treeNodeList.Add(node);
            }
            return treeNodeList;
        }
    }
}
